<?php
if(!isset($GLOBALS['kindeditor'])) {
	echo('<script charset="utf-8" src="./adminassets/kindeditor.js"></script>');
	$GLOBALS['kindeditor']=1;
}
?>
<textarea<?php $style=='' ? print(' style="width:700px;height:400px"') : print($style);?> name="<?php echo($inputname);?>" cols="150" rows="30"  id="<?php echo($inputname);?>"><?php echo($inputvalue);?></textarea>
		<script type="text/javascript">
			var <?php echo($inputname);?>;
			KindEditor.ready(function(K) {
			<?php echo($inputname);?> = K.create('#<?php echo($inputname);?>', {
			uploadJson : 'upload.php',
			filterMode : false,
			afterChange : function() {
				// console.log("编辑完成（全）")
				this.sync();
			},afterBlur:function () {
					this.sync();
				}
			});
});
		</script>